home *** CD-ROM | disk | FTP | other *** search
- $IN= $ARGV[0] ne '' ? $ARGV[0] : die "need tree-file-name";
- $MB = $ARGV[0];
- $MB =~ s/\.tre$//i;
- $MB =~ s/^.+\\//;
- $MB =~ tr/A-Z/a-z/;
-
- print "<html><body>\n";
- print "<!-- $TREEN check; empty file means OK -->\n";
-
- open IN || die "can't open $IN";
- $msgprev = '';
-
- while (<IN>) { chop;
- ($lvl,$mail,$name,$mssg,$subj,$date) = split( "\f");
- #check (in current directory) for missing files and print them
- $mssgroot = $mssg;
- $mssgroot =~ s/\.9$//;
- $mssgroot =~ s/\.HTM$//;
- @st1 = stat( "$mssgroot.HTM" );
- if (!$st1[7]) {
- @st1 = stat( "$mssgroot.9" );
- if (!$st1[7]) {
- $mssgroot = "9$mssgroot";
- # print ": $mssgroot\n"
- $http = "http://www.insidetheweb.com/messageboard/mbs.cgi?acct=$MB&MyNum=$mssgroot&P=No&TL=$mssgroot";
- print "<A HREF=\"$http\"> $mssg </A><BR>\n";
- }
- }
- print "!! $mssg duplicated!\n" if $msgprev eq $mssgroot;
- $msgprev = $mssgroot;
- }
- close IN;
- #print "</body></html>\n"; #epilogue
-
- #SvD 01'99
-